employeeexperience/communities returning 400 bad request

Sellars, Martin 0 Reputation points
2024-05-13T23:46:55.4966667+00:00

Steps to reproduce the behavior:

  1. Go to 'graph explorer'
  2. enter https://graph.microsoft.com/beta/employeeExperience/communities/eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiIyMDIxMzQ1Njg5NiJ9
  3. click run report
  4. See error 400 bad response
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,873 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 785 Reputation points Microsoft Vendor
    2024-05-14T02:35:40.7533333+00:00

    Hi @Sellars, Martin

    The 400 error is caused by an incorrect URL, please check the communityId, you can list all communities with the following code, you can see all the communityId in the request result, and then check whether the communityId you queried are in these communities.

    https://graph.microsoft.com/beta/employeeExperience/communities
    

    Here are the results of my request:

    1

    2

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments